/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */

import type { MaSearchItem } from '@mineadmin/search'
import MaDictSelect from '@/components/ma-dict-picker/ma-dict-select.vue'

export default function getSearchItems(t: any): MaSearchItem[] {
    return [
    { label: '巡检名称', prop: 'name', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '巡检计划名称'}) } },
    { label: '开始时间', prop: 'start_time', render: 'DatePicker', renderProps: { placeholder: t('form.pleaseInput', { msg: '巡检开始时间'}), type: 'datetimerange', 'range-separator': '到', 'start-placeholder': '开始日期', 'end-placeholder': '结束日期', format: 'YYYY-MM-DD hh:mm:ss', 'value-format': 'YYYY-MM-DD hh:mm:ss', 'default-time': [new Date(2000, 1, 1, 0, 0, 0),new Date(2000, 2, 1, 23, 59, 59)] }, mode: 'date', showTime: true },
    { label: '结束时间', prop: 'end_time', render: 'DatePicker', renderProps: { placeholder: t('form.pleaseInput', { msg: '巡检结束时间'}), type: 'datetimerange', 'range-separator': '到', 'start-placeholder': '开始日期', 'end-placeholder': '结束日期', format: 'YYYY-MM-DD hh:mm:ss', 'value-format': 'YYYY-MM-DD hh:mm:ss', 'default-time': [new Date(2000, 1, 1, 0, 0, 0),new Date(2000, 2, 1, 23, 59, 59)] }, mode: 'date', showTime: true },
    { label: '巡检人', prop: 'inspector', render: 'input', renderProps: { placeholder: t('form.pleaseInput', { msg: '巡检人'}) } },
  ]
}
